package com.carhailing.client.mapper;

import com.carhailing.common.domain.request.PageInfoVo;
import com.carhailing.common.domain.response.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ClientMapper {
    Integer selectUser(@Param("userId") Long userId);











    ResponseResult<DirectionResponse> direction(ForecastPriceDTO forecastPriceDTO);



    void addOrderTrade(CarOrder CarOrder);

    List<CarOrder> OrderList(PageInfoVo pageInfoVo);

    CarOrder selectOrderTradeById(@Param("orderTradeId") Integer orderTradeId);

    void updateOrderTrade(CarOrder CarOrder);

    List<PriceRule> selectByMap(Map<String, Object> queryMap);

    Integer selectBookingCarOrder(@Param("bookingCarOrderId") Long bookingCarOrderId);


    StartCarOrder selectOrderTrade(@Param("startCarId") Long startCarId);

    void addbookingarOrder(BookingCarOrder BookingCarOrders);

    ReceivePlaneOrderDto selectReceivePlaneOrder(@Param("receivePlaneOrderId") Integer receivePlaneOrderId);

    void addReceivePlaneOrder(ReceivePlaneOrderDto receivePlaneOrderDto1);


    void delCarOrder(@Param("startCarId") Long startCarId);
}
